﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using V5_Common;
using V5_BLL;

namespace V5_EShop._Class.Data {
    public class V5UserHelper {
        private static readonly V5UserHelper m_Instance = new V5UserHelper();
        /// <summary>
        /// 
        /// </summary>
        public static V5UserHelper Instance {
            get { return m_Instance; }
        }
        public bool check_member_login() {
            if (HttpContext.Current.Request.Cookies["membername"] != null
                && HttpContext.Current.Request.Cookies["memberid"] != null) {
                    int userid = InputHelper.SetNumber(HttpContext.Current.Request.Cookies["memberid"].Value);
                //user = new BLLUser().GetModel(userid);
                return true;
            }
            return false;
        }
    }
}